using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for WebSiteController
/// </summary>
public class WebSiteController
{
    public WebSiteController()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public static void onSuccessfullyLogin()
    {
        HttpContext.Current.Response.Redirect("~/Ulogovan_korisnik/Oglasavanje.aspx");
    }

    public static String onSuccessfullyLoginUrl()
    {
        return "~/Ulogovan_korisnik/Oglasavanje.aspx";
    }

    public static String onSuccessfullyRegisterUrl()
    {
        return "~/UserManagement/Login.aspx";
    }

    public static void handleBuyProduct()
    {
    }

    public static void onUnknownProductId()
    {
        HttpContext.Current.Response.Redirect("~/Public/PretragaProizvoda.aspx");
    }

    public static void onUserIsNotLoggedIn()
    {
        HttpContext.Current.Response.Redirect("~/UserManagement/Login.aspx");
    }

    public static void onUnauthorizedAccessAttempt()
    {
        HttpContext.Current.Server.Transfer("~/Public/UnauthorizedAccessInfoPage.aspx");
    }

   
}
